<!doctype html>
<html lang="en-us">
  <head>
    <title>hugo快速构建博客 // My New Hugo Site</title>
    <meta charset="utf-8" />
    <meta name="generator" content="Hugo 0.74.3" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="John Doe" />
    <meta name="description" content="" />
    <link rel="stylesheet" href="https://erdanli.gitee.com/css/main.min.88e7083eff65effb7485b6e6f38d10afbec25093a6fac42d734ce9024d3defbd.css" />

    
    <meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="hugo快速构建博客"/>
<meta name="twitter:description" content="windows 安装运行  https://github.com/gohugoio/hugo/releases 下载 windows-64bit.zip cd e: mkdri hugo cd hugo mkdir bin 解压缩到e:\hugo\bin hugo version hugo new site myblog cd myblog https://themes.gohugo.io git clone https://github.com/vaga/hugo-theme-m10c.git themes/m10c cd themes cd .. hugo server -t m10c &ndash;buildDrafts http://localhost:1313/ hugo new post/blog.md cd content cd post 用vscode 来写 blog.md cd myblog hugo server -t m10c &ndash;buildDrafts 修改 title  部署到github  create a new repository  Owner  frzw   Repository name  frzw."/>

    <meta property="og:title" content="hugo快速构建博客" />
<meta property="og:description" content="windows 安装运行  https://github.com/gohugoio/hugo/releases 下载 windows-64bit.zip cd e: mkdri hugo cd hugo mkdir bin 解压缩到e:\hugo\bin hugo version hugo new site myblog cd myblog https://themes.gohugo.io git clone https://github.com/vaga/hugo-theme-m10c.git themes/m10c cd themes cd .. hugo server -t m10c &ndash;buildDrafts http://localhost:1313/ hugo new post/blog.md cd content cd post 用vscode 来写 blog.md cd myblog hugo server -t m10c &ndash;buildDrafts 修改 title  部署到github  create a new repository  Owner  frzw   Repository name  frzw." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://erdanli.gitee.com/post/blog/" />
<meta property="article:published_time" content="2020-08-30T15:52:35+08:00" />
<meta property="article:modified_time" content="2020-08-30T15:52:35+08:00" />


  </head>
  <body>
    <header class="app-header">
      <a href="https://erdanli.gitee.com/"><img class="app-header-avatar" src="/avatar.jpg" alt="John Doe" /></a>
      <h1>My New Hugo Site</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium.</p>
      <div class="app-header-social">
        
      </div>
    </header>
    <main class="app-container">
      
  <article class="post">
    <header class="post-header">
      <h1 class ="post-title">hugo快速构建博客</h1>
      <div class="post-meta">
        <div>
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-calendar">
  <title>calendar</title>
  <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
          Aug 30, 2020
        </div>
        <div>
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-clock">
  <title>clock</title>
  <circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>
</svg>
          1 min read
        </div></div>
    </header>
    <div class="post-content">
      <h1 id="windows">windows</h1>
<h1 id="安装运行">安装运行</h1>
<ul>
<li><a href="https://github.com/gohugoio/hugo/releases">https://github.com/gohugoio/hugo/releases</a> 下载 windows-64bit.zip</li>
<li>cd e:</li>
<li>mkdri hugo</li>
<li>cd hugo</li>
<li>mkdir bin</li>
<li>解压缩到e:\hugo\bin</li>
<li>hugo version</li>
<li>hugo new site myblog</li>
<li>cd myblog</li>
<li><a href="https://themes.gohugo.io">https://themes.gohugo.io</a></li>
<li>git clone <a href="https://github.com/vaga/hugo-theme-m10c.git">https://github.com/vaga/hugo-theme-m10c.git</a> themes/m10c</li>
<li>cd themes</li>
<li>cd ..</li>
<li>hugo server -t m10c &ndash;buildDrafts</li>
<li>http://localhost:1313/</li>
<li>hugo new post/blog.md</li>
<li>cd content</li>
<li>cd post</li>
<li>用vscode 来写 blog.md</li>
<li>cd myblog</li>
<li>hugo server -t m10c &ndash;buildDrafts</li>
<li>修改 title</li>
</ul>
<h1 id="部署到github">部署到github</h1>
<ul>
<li>create a new repository
<ul>
<li>Owner
<ul>
<li>frzw</li>
</ul>
</li>
<li>Repository name
<ul>
<li>frzw.github.io(必须是Owner名字+github.io)</li>
</ul>
</li>
</ul>
</li>
<li>cd myblog</li>
<li>hugo &ndash;theme=m10c &ndash;baseUrl=&quot;https://frzw.github.io/&rdquo; &ndash;buildDrafts</li>
<li>hugo &ndash;theme=m10c &ndash;baseUrl=&quot;https://erdanli.gitee.com/&rdquo; &ndash;buildDrafts</li>
<li>cd public</li>
<li>git init</li>
<li>git add .</li>
<li>git commit -m &ldquo;我的hugo博客第一次提交&rdquo;</li>
<li>git remote add origin <a href="https://github.com/frzw/frzw.github.io.git">https://github.com/frzw/frzw.github.io.git</a></li>
<li>git remote add origin <a href="https://github.com/erdanli/erdanli.gitee.com.git">https://github.com/erdanli/erdanli.gitee.com.git</a></li>
<li>git push -u origin master</li>
<li>Username for &lsquo;<a href="https://github.com">https://github.com</a>&rsquo;:frzw</li>
<li>Password for &lsquo;<a href="https://frzw@github.com">https://frzw@github.com</a>&rsquo;:</li>
<li><a href="https://frzw.github.io">https://frzw.github.io</a></li>
<li><a href="https://erdanli.gitee.com">https://erdanli.gitee.com</a></li>
</ul>

    </div>
    <div class="post-footer">
      
    </div>
  </article>

    </main>
  </body>
</html>
